import request from '@/utils/request'

// 查询班别管理列表
export function listClassGrade(query) {
  return request({
    url: '/tranShort/classGrade/list',
    method: 'get',
    params: query
  })
}

// 查询班别管理详细
export function getClassGrade(id) {
  return request({
    url: '/tranShort/classGrade/' + id,
    method: 'get'
  })
}

// 新增班别管理
export function addClassGrade(data) {
  return request({
    url: '/tranShort/classGrade',
    method: 'post',
    data: data
  })
}

// 修改班别管理
export function updateClassGrade(data) {
  return request({
    url: '/tranShort/classGrade',
    method: 'put',
    data: data
  })
}

// 删除班别管理
export function delClassGrade(id) {
  return request({
    url: '/tranShort/classGrade/' + id,
    method: 'delete'
  })
}

// 导出班别管理
export function exportClassGrade(query) {
  return request({
    url: '/tranShort/classGrade/export',
    method: 'get',
    params: query
  })
}